<template>
    <p>{{ counter.count }}</p>
    <p>{{ counter.doubleCount }}</p>
    <button @click="counter.increment">修改count</button>

    <p>{{ user.msg }}</p>
    <button @click="user.setMsg('hello world')">修改msg</button>
</template>

<script setup>
import { useCounterStore } from '../stores/counter.js'
import { useUser } from '../stores/user'

const counter = useCounterStore()
const user = useUser()

</script>

<style scoped>

</style>